package com.liner;

public class VarDemo {
    private static final int ASD  = 72;

    public static void main(String[] args) {
        //变量的声明
        int num;
        int num1, num2, num3;

        //变量的初始化
        int num4 = 13;
        num4 = 1110;
        int num5, num6, num7;
        int num8 = 10, num9, num10 = 11;
        num5 = 10;
        num6 = 10;

        System.out.println("num5 + num4 = " + (num5 + num4));


        //变量的访问
        num = 1000;
        num = num + 5000;
        System.out.println(num);
        num -= 1000;
        System.out.println(num);

        //变量的命名



        //基本数据类型
        //整型
        int a = 10;
        System.out.println(a);
        //浮点型
        float b = 10.5f;
        System.out.println(b);
        //布尔型
        boolean c = true;
        System.out.println(c);
        //字符型
        char d = 'a';
        System.out.println(d);
        //字符串型
        String e = "a";
        System.out.println(e);
        //对象
        Object f = new Object();
        System.out.println(f);


    }
}
